package edu.uni.dormitory.service;

import edu.uni.dormitory.bean.ExchangeApply;
import edu.uni.dormitory.bean.RoomExchange;

import java.util.List;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 服务
 */
public interface ExchangeService{
    ExchangeApply selectExchangeApplyById(Long id, Long loginId);

    ExchangeApply selectExchangeApplyByIdWithInstructor(Long id, Long collegeId);

    ExchangeApply selectExchangeApplyById(Long id);

    String selectExchangeStatusByApplyId(Long applyId);

    List<ExchangeApply> selectExchangeApplyPageBySelf(Long loginId);

    List<ExchangeApply> selectExchangeApplyPageByCollege(Long collegeId);

    List<ExchangeApply> selectExchangeApplyPageByArea(Long areaId);

    int insertExchangeApply(ExchangeApply exchangeApply, Long loginId);

    int updateExchangeApplyWithInstructor(Long id, Byte agree, Long loginId);

    int updateExchangeApplyWithSettlementCenter(Long applyId, Byte agree, Long loginId);

    RoomExchange selectExchangeByApplyId(Long applyId);

    List<ExchangeApply> selectExchangeApplyList();
}
